package com.leyou.common.config;

import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @author 虎哥
 */
@Configuration
public class RedisConfig {

    @Bean
    @Primary
    public RedisProperties redisProperties(){
        RedisProperties redisProperties = new RedisProperties();
        redisProperties.setHost("ly-redis");
        return redisProperties;
    }
}
